<%--
  Created by IntelliJ IDEA.
  User: 11963
  Date: 2020/4/19
  Time: 20:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>操作成功</title>
</head>
<body>
   <div>

       <h3>${info == null ? info :"操作成功!"}</h3>
       <p>
           剩余<span id="info"> ${count !=null ? count:5}</span>秒后自动跳转目标页面！
       </p>
       <P>
           <a href="${returnPage ==null ? "/index.jsp":returnPage}">手工跳转</a>

       </P>

   </div>
<script type="text/javascript">

    window.onload = function(){

        var count =  ${count !=null?count:5} ;
        var info = document.getElementById("info");
        function show(){
            if (count -->0){
                info.innerHTML= count;
                setTimeout(show,1000);
            } else {
                location.href = "${returnPage}";
            }
        }
        show();
    }
</script>
</body>
</html>
